<?php   // $Id: dep_delete.php 251 2008-08-04 22:02:16Z pcoustillas $ ?>
<?php   
/*Copyright (C) 2003-2004 Guy Hendrickx
Licensed under the terms of the GNU  General Public License:http://www.opensource.org/licenses/gpl-license.php
File Authors:Guy Hendrickx */

require_once("include/verif.php");
require_once("include/config/common.php");

$num=isset($_GET['num'])?$_GET['num']:"";

$sql1 = "DELETE FROM ${tblpref}depense WHERE num=$num";
mysql_query($sql1) or die("Erreur suppression dépense !<br/>$sql1<br/>" . mysql_error());

header("Location: dep_lister.php?message=Dépense supprimée.");

?>
